<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="js/jquery.min.js"></script>
	</head>
	<body>
		<h1>JSON</h1>
		<div class="">
			编号<span id="itemId"></span>
		</div>
		<div class="">
			价格<span id="itemPrice"></span>
		</div>
	</body>
	<script type="text/javascript">
		var jsonstr = '[{"p":"4879.00","op":"5299.00","cbf":"0","id":"J_100008348542","m":"6000.00"}]';
		var jsonstr = '[{"groupName": "2021年货节- PC大促楼层电梯", "deliveryId": null, "stageName": "", "groupId": "03773223"}]';
		console.log(jsonstr);
		var items = JSON.parse(jsonstr);
		console.log(items[0].p)
		console.log(items[0].id)
		
		$("#itemId").text(items[0].id);
		$("#itemId").css("color","rgba(100,200,150,50%)");
		$("#itemPrice").text(items[0].p);
		$("#itemPrice").css("color","rgba(100,150,200,50%)")
	</script>
</html>
